<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>admin</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="">
	<meta name="author" content="">

	<!-- Le styles -->
	<link href="<?php echo Yii::app()->theme->baseUrl;?>/libs/bootstrap//css/bootstrap.css" rel="stylesheet">
	<style type="text/css">
		body { padding-top: 60px; padding-bottom: 40px; }
	</style>
	<link href="<?php echo Yii::app()->theme->baseUrl;?>/libs/bootstrap//css/bootstrap-responsive.css" rel="stylesheet">

	<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
	<!--[if lt IE 9]>
		<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->

	<!-- Le fav and touch icons -->
	<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl;?>/css/custom.css" />
</head>
<body>
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container-fluid">
				<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</a>
				<a class="brand" href="#">Game online</a>
				<div class="nav-collapse">
					<ul class="nav">
						<li class="active"><a href="#">Home</a></li>
						<li><a href="<?php echo Yii::app()->createUrl('admin/user');?>">User</a></li>
						<li><a href="<?php echo Yii::app()->createUrl('admin/setting/deposit');?>">Deposit</a></li>
						<li><a href="<?php echo Yii::app()->createUrl('admin/help');?>">Helps</a></li>
						<li><a href="<?php echo Yii::app()->createUrl('admin/setting');?>">Settings</a></li>
					</ul>
					<p class="navbar-text pull-right">Logged in as <a href="#"><?php echo Yii::app()->user->name;?></a>
						| <a href="<?php echo Yii::app()->createUrl('admin/default/logout');?>"> thoát</a>
					</p>
				</div><!--/.nav-collapse -->
			</div>
		</div>
	</div>

	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span3">
				<div class="well sidebar-nav">
					<ul class="nav nav-list">
						<li class="nav-header">MENU</li>
						<?php foreach($this->menu as $m): ?>
						<li><a href="<?php echo Yii::app()->createUrl($m['url']);?>"><?php echo $m['label'];?></a></li>
						<?php endforeach; ?>
					</ul>
				</div><!--/.well -->
			</div><!--/span-->
			<div class="span9">
				<?php
					if(Yii::app()->user->hasFlash('success')){
						echo '<div class="alert alert-success">
							<a class="close" data-dismiss="alert">&times;</a>
							<strong>Success!</strong> '.Yii::app()->user->getFlash('success').'
						</div>';
					}
					if(Yii::app()->user->hasFlash('error')){
						echo '<div class="alert alert-error">
							<a class="close" data-dismiss="alert">&times;</a>
							<strong>Error!</strong> '.Yii::app()->user->getFlash('error').'
						</div>';
					}
					if(Yii::app()->user->hasFlash('warning')){
						echo '<div class="alert">
							<a class="close" data-dismiss="alert">&times;</a>
							<strong>Warning!</strong> '.Yii::app()->user->getFlash('warning').'
						</div>';
					}
				?>
				<?php echo $content;?>
			</div><!--/span-->
		</div><!--/row-->
	  	<hr>
		<footer>
			<p>&copy; <?php echo date('Y');?> Gameonline</p>
		</footer>
	</div><!--/.fluid-container-->

	<!-- Le javascript
	================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
	<script src="<?php echo Yii::app()->theme->baseUrl;?>/libs/bootstrap/js/bootstrap.min.js"></script>
</body>
</html>